package com.lc1993929.redis.first;

import redis.clients.jedis.Jedis;

/**
 * Created by LiuChang on 2017/3/30.
 */
public class ReidisJava {
    public static void main(String[] args) {
        //连接本地的redis服务
        Jedis jedis = new Jedis("localhost");
        System.out.println("Connection to server sucessfully");

        //查看服务是否运行
        jedis.auth("4651248");
        System.out.println("server is running: " + jedis.ping());
    }
}
